// default package
// Generated 28 Jul, 2014 8:04:07 PM by Hibernate Tools 3.4.0.CR1
package com.galaxy.bean;

import java.math.BigDecimal;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * SalesFlatQuoteAddress generated by hbm2java
 */
@Entity
@Table(name = "sales_flat_quote_address", catalog = "magento")
public class SalesFlatQuoteAddress implements java.io.Serializable {

	private Integer addressId;
	private SalesFlatQuote salesFlatQuote;
	private Date createdAt;
	private Date updatedAt;
	private Integer customerId;
	private Short saveInAddressBook;
	private Integer customerAddressId;
	private String addressType;
	private String email;
	private String prefix;
	private String firstname;
	private String middlename;
	private String lastname;
	private String suffix;
	private String company;
	private String street;
	private String city;
	private String region;
	private Integer regionId;
	private String postcode;
	private String countryId;
	private String telephone;
	private String fax;
	private short sameAsBilling;
	private short freeShipping;
	private short collectShippingRates;
	private String shippingMethod;
	private String shippingDescription;
	private BigDecimal weight;
	private BigDecimal subtotal;
	private BigDecimal baseSubtotal;
	private BigDecimal subtotalWithDiscount;
	private BigDecimal baseSubtotalWithDiscount;
	private BigDecimal taxAmount;
	private BigDecimal baseTaxAmount;
	private BigDecimal shippingAmount;
	private BigDecimal baseShippingAmount;
	private BigDecimal shippingTaxAmount;
	private BigDecimal baseShippingTaxAmount;
	private BigDecimal discountAmount;
	private BigDecimal baseDiscountAmount;
	private BigDecimal grandTotal;
	private BigDecimal baseGrandTotal;
	private String customerNotes;
	private String appliedTaxes;
	private Integer giftMessageId;
	private BigDecimal shippingDiscountAmount;
	private BigDecimal baseShippingDiscountAmount;
	private BigDecimal subtotalInclTax;
	private BigDecimal baseSubtotalTotalInclTax;
	private String discountDescription;
	private BigDecimal hiddenTaxAmount;
	private BigDecimal baseHiddenTaxAmount;
	private BigDecimal shippingHiddenTaxAmount;
	private BigDecimal baseShippingHiddenTaxAmnt;
	private BigDecimal shippingInclTax;
	private BigDecimal baseShippingInclTax;
	private Set salesFlatQuoteShippingRates = new HashSet(0);
	private Set salesFlatQuoteAddressItems = new HashSet(0);

	public SalesFlatQuoteAddress() {
	}

	public SalesFlatQuoteAddress(SalesFlatQuote salesFlatQuote, Date createdAt,
			Date updatedAt, short sameAsBilling, short freeShipping,
			short collectShippingRates, BigDecimal weight, BigDecimal subtotal,
			BigDecimal baseSubtotal, BigDecimal subtotalWithDiscount,
			BigDecimal baseSubtotalWithDiscount, BigDecimal taxAmount,
			BigDecimal baseTaxAmount, BigDecimal shippingAmount,
			BigDecimal baseShippingAmount, BigDecimal discountAmount,
			BigDecimal baseDiscountAmount, BigDecimal grandTotal,
			BigDecimal baseGrandTotal) {
		this.salesFlatQuote = salesFlatQuote;
		this.createdAt = createdAt;
		this.updatedAt = updatedAt;
		this.sameAsBilling = sameAsBilling;
		this.freeShipping = freeShipping;
		this.collectShippingRates = collectShippingRates;
		this.weight = weight;
		this.subtotal = subtotal;
		this.baseSubtotal = baseSubtotal;
		this.subtotalWithDiscount = subtotalWithDiscount;
		this.baseSubtotalWithDiscount = baseSubtotalWithDiscount;
		this.taxAmount = taxAmount;
		this.baseTaxAmount = baseTaxAmount;
		this.shippingAmount = shippingAmount;
		this.baseShippingAmount = baseShippingAmount;
		this.discountAmount = discountAmount;
		this.baseDiscountAmount = baseDiscountAmount;
		this.grandTotal = grandTotal;
		this.baseGrandTotal = baseGrandTotal;
	}

	public SalesFlatQuoteAddress(SalesFlatQuote salesFlatQuote, Date createdAt,
			Date updatedAt, Integer customerId, Short saveInAddressBook,
			Integer customerAddressId, String addressType, String email,
			String prefix, String firstname, String middlename,
			String lastname, String suffix, String company, String street,
			String city, String region, Integer regionId, String postcode,
			String countryId, String telephone, String fax,
			short sameAsBilling, short freeShipping,
			short collectShippingRates, String shippingMethod,
			String shippingDescription, BigDecimal weight, BigDecimal subtotal,
			BigDecimal baseSubtotal, BigDecimal subtotalWithDiscount,
			BigDecimal baseSubtotalWithDiscount, BigDecimal taxAmount,
			BigDecimal baseTaxAmount, BigDecimal shippingAmount,
			BigDecimal baseShippingAmount, BigDecimal shippingTaxAmount,
			BigDecimal baseShippingTaxAmount, BigDecimal discountAmount,
			BigDecimal baseDiscountAmount, BigDecimal grandTotal,
			BigDecimal baseGrandTotal, String customerNotes,
			String appliedTaxes, Integer giftMessageId,
			BigDecimal shippingDiscountAmount,
			BigDecimal baseShippingDiscountAmount, BigDecimal subtotalInclTax,
			BigDecimal baseSubtotalTotalInclTax, String discountDescription,
			BigDecimal hiddenTaxAmount, BigDecimal baseHiddenTaxAmount,
			BigDecimal shippingHiddenTaxAmount,
			BigDecimal baseShippingHiddenTaxAmnt, BigDecimal shippingInclTax,
			BigDecimal baseShippingInclTax, Set salesFlatQuoteShippingRates,
			Set salesFlatQuoteAddressItems) {
		this.salesFlatQuote = salesFlatQuote;
		this.createdAt = createdAt;
		this.updatedAt = updatedAt;
		this.customerId = customerId;
		this.saveInAddressBook = saveInAddressBook;
		this.customerAddressId = customerAddressId;
		this.addressType = addressType;
		this.email = email;
		this.prefix = prefix;
		this.firstname = firstname;
		this.middlename = middlename;
		this.lastname = lastname;
		this.suffix = suffix;
		this.company = company;
		this.street = street;
		this.city = city;
		this.region = region;
		this.regionId = regionId;
		this.postcode = postcode;
		this.countryId = countryId;
		this.telephone = telephone;
		this.fax = fax;
		this.sameAsBilling = sameAsBilling;
		this.freeShipping = freeShipping;
		this.collectShippingRates = collectShippingRates;
		this.shippingMethod = shippingMethod;
		this.shippingDescription = shippingDescription;
		this.weight = weight;
		this.subtotal = subtotal;
		this.baseSubtotal = baseSubtotal;
		this.subtotalWithDiscount = subtotalWithDiscount;
		this.baseSubtotalWithDiscount = baseSubtotalWithDiscount;
		this.taxAmount = taxAmount;
		this.baseTaxAmount = baseTaxAmount;
		this.shippingAmount = shippingAmount;
		this.baseShippingAmount = baseShippingAmount;
		this.shippingTaxAmount = shippingTaxAmount;
		this.baseShippingTaxAmount = baseShippingTaxAmount;
		this.discountAmount = discountAmount;
		this.baseDiscountAmount = baseDiscountAmount;
		this.grandTotal = grandTotal;
		this.baseGrandTotal = baseGrandTotal;
		this.customerNotes = customerNotes;
		this.appliedTaxes = appliedTaxes;
		this.giftMessageId = giftMessageId;
		this.shippingDiscountAmount = shippingDiscountAmount;
		this.baseShippingDiscountAmount = baseShippingDiscountAmount;
		this.subtotalInclTax = subtotalInclTax;
		this.baseSubtotalTotalInclTax = baseSubtotalTotalInclTax;
		this.discountDescription = discountDescription;
		this.hiddenTaxAmount = hiddenTaxAmount;
		this.baseHiddenTaxAmount = baseHiddenTaxAmount;
		this.shippingHiddenTaxAmount = shippingHiddenTaxAmount;
		this.baseShippingHiddenTaxAmnt = baseShippingHiddenTaxAmnt;
		this.shippingInclTax = shippingInclTax;
		this.baseShippingInclTax = baseShippingInclTax;
		this.salesFlatQuoteShippingRates = salesFlatQuoteShippingRates;
		this.salesFlatQuoteAddressItems = salesFlatQuoteAddressItems;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "address_id", unique = true, nullable = false)
	public Integer getAddressId() {
		return this.addressId;
	}

	public void setAddressId(Integer addressId) {
		this.addressId = addressId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "quote_id", nullable = false)
	public SalesFlatQuote getSalesFlatQuote() {
		return this.salesFlatQuote;
	}

	public void setSalesFlatQuote(SalesFlatQuote salesFlatQuote) {
		this.salesFlatQuote = salesFlatQuote;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "created_at", nullable = false, length = 19)
	public Date getCreatedAt() {
		return this.createdAt;
	}

	public void setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "updated_at", nullable = false, length = 19)
	public Date getUpdatedAt() {
		return this.updatedAt;
	}

	public void setUpdatedAt(Date updatedAt) {
		this.updatedAt = updatedAt;
	}

	@Column(name = "customer_id")
	public Integer getCustomerId() {
		return this.customerId;
	}

	public void setCustomerId(Integer customerId) {
		this.customerId = customerId;
	}

	@Column(name = "save_in_address_book")
	public Short getSaveInAddressBook() {
		return this.saveInAddressBook;
	}

	public void setSaveInAddressBook(Short saveInAddressBook) {
		this.saveInAddressBook = saveInAddressBook;
	}

	@Column(name = "customer_address_id")
	public Integer getCustomerAddressId() {
		return this.customerAddressId;
	}

	public void setCustomerAddressId(Integer customerAddressId) {
		this.customerAddressId = customerAddressId;
	}

	@Column(name = "address_type")
	public String getAddressType() {
		return this.addressType;
	}

	public void setAddressType(String addressType) {
		this.addressType = addressType;
	}

	@Column(name = "email")
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "prefix", length = 40)
	public String getPrefix() {
		return this.prefix;
	}

	public void setPrefix(String prefix) {
		this.prefix = prefix;
	}

	@Column(name = "firstname")
	public String getFirstname() {
		return this.firstname;
	}

	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}

	@Column(name = "middlename", length = 40)
	public String getMiddlename() {
		return this.middlename;
	}

	public void setMiddlename(String middlename) {
		this.middlename = middlename;
	}

	@Column(name = "lastname")
	public String getLastname() {
		return this.lastname;
	}

	public void setLastname(String lastname) {
		this.lastname = lastname;
	}

	@Column(name = "suffix", length = 40)
	public String getSuffix() {
		return this.suffix;
	}

	public void setSuffix(String suffix) {
		this.suffix = suffix;
	}

	@Column(name = "company")
	public String getCompany() {
		return this.company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	@Column(name = "street")
	public String getStreet() {
		return this.street;
	}

	public void setStreet(String street) {
		this.street = street;
	}

	@Column(name = "city")
	public String getCity() {
		return this.city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	@Column(name = "region")
	public String getRegion() {
		return this.region;
	}

	public void setRegion(String region) {
		this.region = region;
	}

	@Column(name = "region_id")
	public Integer getRegionId() {
		return this.regionId;
	}

	public void setRegionId(Integer regionId) {
		this.regionId = regionId;
	}

	@Column(name = "postcode")
	public String getPostcode() {
		return this.postcode;
	}

	public void setPostcode(String postcode) {
		this.postcode = postcode;
	}

	@Column(name = "country_id")
	public String getCountryId() {
		return this.countryId;
	}

	public void setCountryId(String countryId) {
		this.countryId = countryId;
	}

	@Column(name = "telephone")
	public String getTelephone() {
		return this.telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	@Column(name = "fax")
	public String getFax() {
		return this.fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	@Column(name = "same_as_billing", nullable = false)
	public short getSameAsBilling() {
		return this.sameAsBilling;
	}

	public void setSameAsBilling(short sameAsBilling) {
		this.sameAsBilling = sameAsBilling;
	}

	@Column(name = "free_shipping", nullable = false)
	public short getFreeShipping() {
		return this.freeShipping;
	}

	public void setFreeShipping(short freeShipping) {
		this.freeShipping = freeShipping;
	}

	@Column(name = "collect_shipping_rates", nullable = false)
	public short getCollectShippingRates() {
		return this.collectShippingRates;
	}

	public void setCollectShippingRates(short collectShippingRates) {
		this.collectShippingRates = collectShippingRates;
	}

	@Column(name = "shipping_method")
	public String getShippingMethod() {
		return this.shippingMethod;
	}

	public void setShippingMethod(String shippingMethod) {
		this.shippingMethod = shippingMethod;
	}

	@Column(name = "shipping_description")
	public String getShippingDescription() {
		return this.shippingDescription;
	}

	public void setShippingDescription(String shippingDescription) {
		this.shippingDescription = shippingDescription;
	}

	@Column(name = "weight", nullable = false, precision = 12, scale = 4)
	public BigDecimal getWeight() {
		return this.weight;
	}

	public void setWeight(BigDecimal weight) {
		this.weight = weight;
	}

	@Column(name = "subtotal", nullable = false, precision = 12, scale = 4)
	public BigDecimal getSubtotal() {
		return this.subtotal;
	}

	public void setSubtotal(BigDecimal subtotal) {
		this.subtotal = subtotal;
	}

	@Column(name = "base_subtotal", nullable = false, precision = 12, scale = 4)
	public BigDecimal getBaseSubtotal() {
		return this.baseSubtotal;
	}

	public void setBaseSubtotal(BigDecimal baseSubtotal) {
		this.baseSubtotal = baseSubtotal;
	}

	@Column(name = "subtotal_with_discount", nullable = false, precision = 12, scale = 4)
	public BigDecimal getSubtotalWithDiscount() {
		return this.subtotalWithDiscount;
	}

	public void setSubtotalWithDiscount(BigDecimal subtotalWithDiscount) {
		this.subtotalWithDiscount = subtotalWithDiscount;
	}

	@Column(name = "base_subtotal_with_discount", nullable = false, precision = 12, scale = 4)
	public BigDecimal getBaseSubtotalWithDiscount() {
		return this.baseSubtotalWithDiscount;
	}

	public void setBaseSubtotalWithDiscount(BigDecimal baseSubtotalWithDiscount) {
		this.baseSubtotalWithDiscount = baseSubtotalWithDiscount;
	}

	@Column(name = "tax_amount", nullable = false, precision = 12, scale = 4)
	public BigDecimal getTaxAmount() {
		return this.taxAmount;
	}

	public void setTaxAmount(BigDecimal taxAmount) {
		this.taxAmount = taxAmount;
	}

	@Column(name = "base_tax_amount", nullable = false, precision = 12, scale = 4)
	public BigDecimal getBaseTaxAmount() {
		return this.baseTaxAmount;
	}

	public void setBaseTaxAmount(BigDecimal baseTaxAmount) {
		this.baseTaxAmount = baseTaxAmount;
	}

	@Column(name = "shipping_amount", nullable = false, precision = 12, scale = 4)
	public BigDecimal getShippingAmount() {
		return this.shippingAmount;
	}

	public void setShippingAmount(BigDecimal shippingAmount) {
		this.shippingAmount = shippingAmount;
	}

	@Column(name = "base_shipping_amount", nullable = false, precision = 12, scale = 4)
	public BigDecimal getBaseShippingAmount() {
		return this.baseShippingAmount;
	}

	public void setBaseShippingAmount(BigDecimal baseShippingAmount) {
		this.baseShippingAmount = baseShippingAmount;
	}

	@Column(name = "shipping_tax_amount", precision = 12, scale = 4)
	public BigDecimal getShippingTaxAmount() {
		return this.shippingTaxAmount;
	}

	public void setShippingTaxAmount(BigDecimal shippingTaxAmount) {
		this.shippingTaxAmount = shippingTaxAmount;
	}

	@Column(name = "base_shipping_tax_amount", precision = 12, scale = 4)
	public BigDecimal getBaseShippingTaxAmount() {
		return this.baseShippingTaxAmount;
	}

	public void setBaseShippingTaxAmount(BigDecimal baseShippingTaxAmount) {
		this.baseShippingTaxAmount = baseShippingTaxAmount;
	}

	@Column(name = "discount_amount", nullable = false, precision = 12, scale = 4)
	public BigDecimal getDiscountAmount() {
		return this.discountAmount;
	}

	public void setDiscountAmount(BigDecimal discountAmount) {
		this.discountAmount = discountAmount;
	}

	@Column(name = "base_discount_amount", nullable = false, precision = 12, scale = 4)
	public BigDecimal getBaseDiscountAmount() {
		return this.baseDiscountAmount;
	}

	public void setBaseDiscountAmount(BigDecimal baseDiscountAmount) {
		this.baseDiscountAmount = baseDiscountAmount;
	}

	@Column(name = "grand_total", nullable = false, precision = 12, scale = 4)
	public BigDecimal getGrandTotal() {
		return this.grandTotal;
	}

	public void setGrandTotal(BigDecimal grandTotal) {
		this.grandTotal = grandTotal;
	}

	@Column(name = "base_grand_total", nullable = false, precision = 12, scale = 4)
	public BigDecimal getBaseGrandTotal() {
		return this.baseGrandTotal;
	}

	public void setBaseGrandTotal(BigDecimal baseGrandTotal) {
		this.baseGrandTotal = baseGrandTotal;
	}

	@Column(name = "customer_notes", length = 65535)
	public String getCustomerNotes() {
		return this.customerNotes;
	}

	public void setCustomerNotes(String customerNotes) {
		this.customerNotes = customerNotes;
	}

	@Column(name = "applied_taxes", length = 65535)
	public String getAppliedTaxes() {
		return this.appliedTaxes;
	}

	public void setAppliedTaxes(String appliedTaxes) {
		this.appliedTaxes = appliedTaxes;
	}

	@Column(name = "gift_message_id")
	public Integer getGiftMessageId() {
		return this.giftMessageId;
	}

	public void setGiftMessageId(Integer giftMessageId) {
		this.giftMessageId = giftMessageId;
	}

	@Column(name = "shipping_discount_amount", precision = 12, scale = 4)
	public BigDecimal getShippingDiscountAmount() {
		return this.shippingDiscountAmount;
	}

	public void setShippingDiscountAmount(BigDecimal shippingDiscountAmount) {
		this.shippingDiscountAmount = shippingDiscountAmount;
	}

	@Column(name = "base_shipping_discount_amount", precision = 12, scale = 4)
	public BigDecimal getBaseShippingDiscountAmount() {
		return this.baseShippingDiscountAmount;
	}

	public void setBaseShippingDiscountAmount(
			BigDecimal baseShippingDiscountAmount) {
		this.baseShippingDiscountAmount = baseShippingDiscountAmount;
	}

	@Column(name = "subtotal_incl_tax", precision = 12, scale = 4)
	public BigDecimal getSubtotalInclTax() {
		return this.subtotalInclTax;
	}

	public void setSubtotalInclTax(BigDecimal subtotalInclTax) {
		this.subtotalInclTax = subtotalInclTax;
	}

	@Column(name = "base_subtotal_total_incl_tax", precision = 12, scale = 4)
	public BigDecimal getBaseSubtotalTotalInclTax() {
		return this.baseSubtotalTotalInclTax;
	}

	public void setBaseSubtotalTotalInclTax(BigDecimal baseSubtotalTotalInclTax) {
		this.baseSubtotalTotalInclTax = baseSubtotalTotalInclTax;
	}

	@Column(name = "discount_description")
	public String getDiscountDescription() {
		return this.discountDescription;
	}

	public void setDiscountDescription(String discountDescription) {
		this.discountDescription = discountDescription;
	}

	@Column(name = "hidden_tax_amount", precision = 12, scale = 4)
	public BigDecimal getHiddenTaxAmount() {
		return this.hiddenTaxAmount;
	}

	public void setHiddenTaxAmount(BigDecimal hiddenTaxAmount) {
		this.hiddenTaxAmount = hiddenTaxAmount;
	}

	@Column(name = "base_hidden_tax_amount", precision = 12, scale = 4)
	public BigDecimal getBaseHiddenTaxAmount() {
		return this.baseHiddenTaxAmount;
	}

	public void setBaseHiddenTaxAmount(BigDecimal baseHiddenTaxAmount) {
		this.baseHiddenTaxAmount = baseHiddenTaxAmount;
	}

	@Column(name = "shipping_hidden_tax_amount", precision = 12, scale = 4)
	public BigDecimal getShippingHiddenTaxAmount() {
		return this.shippingHiddenTaxAmount;
	}

	public void setShippingHiddenTaxAmount(BigDecimal shippingHiddenTaxAmount) {
		this.shippingHiddenTaxAmount = shippingHiddenTaxAmount;
	}

	@Column(name = "base_shipping_hidden_tax_amnt", precision = 12, scale = 4)
	public BigDecimal getBaseShippingHiddenTaxAmnt() {
		return this.baseShippingHiddenTaxAmnt;
	}

	public void setBaseShippingHiddenTaxAmnt(
			BigDecimal baseShippingHiddenTaxAmnt) {
		this.baseShippingHiddenTaxAmnt = baseShippingHiddenTaxAmnt;
	}

	@Column(name = "shipping_incl_tax", precision = 12, scale = 4)
	public BigDecimal getShippingInclTax() {
		return this.shippingInclTax;
	}

	public void setShippingInclTax(BigDecimal shippingInclTax) {
		this.shippingInclTax = shippingInclTax;
	}

	@Column(name = "base_shipping_incl_tax", precision = 12, scale = 4)
	public BigDecimal getBaseShippingInclTax() {
		return this.baseShippingInclTax;
	}

	public void setBaseShippingInclTax(BigDecimal baseShippingInclTax) {
		this.baseShippingInclTax = baseShippingInclTax;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "salesFlatQuoteAddress")
	public Set getSalesFlatQuoteShippingRates() {
		return this.salesFlatQuoteShippingRates;
	}

	public void setSalesFlatQuoteShippingRates(Set salesFlatQuoteShippingRates) {
		this.salesFlatQuoteShippingRates = salesFlatQuoteShippingRates;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "salesFlatQuoteAddress")
	public Set getSalesFlatQuoteAddressItems() {
		return this.salesFlatQuoteAddressItems;
	}

	public void setSalesFlatQuoteAddressItems(Set salesFlatQuoteAddressItems) {
		this.salesFlatQuoteAddressItems = salesFlatQuoteAddressItems;
	}

}
